/*
*  Impp - Instant Messenger
*
*  Copyright (C) 2001-2003  Oliver Schneider
*
*  This program is free software; you can redistribute it and/or modify
*  it under the terms of the GNU General Public License as published by
*  the Free Software Foundation; either version 2 of the License, or
*  (at your option) any later version.
*
*  This program is distributed in the hope that it will be useful,
*  but WITHOUT ANY WARRANTY; without even the implied warranty of
*  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
*  GNU General Public License for more details.
*
*  You should have received a copy of the GNU General Public License
*  along with this program; if not, write to the Free Software
*  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
*/
#ifndef MAIN_
#define MAIN_

#include "wx/wxprec.h"
#include "wx/setup.h"
#include <wx/cmdline.h>

#ifndef WX_PRECOMP
    #include "wx/wx.h"
#endif


#include <iostream>

#ifdef __WXGTK__
// teach how wxString use streams (operator<<)
::std::ostream & operator<<(::std::ostream & out, const ::wxString & str);
#endif


// the application icon (under Windows and OS/2 it is in resources and even
// though we could still include the XPM here it would be unused)
//#if !defined(__WXMSW__) && !defined(__WXPM__)
//    #include "../sample.xpm"
//#endif


namespace Impp {

class MyApp : public wxApp
{
private:
	wxString pProfilDir;

public:
    virtual bool OnInit();
    virtual void OnInitCmdLine(wxCmdLineParser& parser);
    virtual bool OnCmdLineParsed(wxCmdLineParser& parser);
    virtual int OnExit();
};

static const wxCmdLineEntryDesc g_cmdLineDesc [] =
{
     { wxCMD_LINE_SWITCH, wxT("h"), wxT("help"), wxT("displays help on the command line parameters"),
          wxCMD_LINE_VAL_NONE, wxCMD_LINE_OPTION_HELP },
     { wxCMD_LINE_OPTION, wxT("p"), wxT("profildir"), wxT("the directory to use for the profil data"),
          wxCMD_LINE_VAL_STRING, wxCMD_LINE_PARAM_OPTIONAL  },
     { wxCMD_LINE_NONE }
};



}

#endif /*MAIN_*/
